package com.bcxj.apipassenger.remote;

import com.bcxj.internalcommon.dto.OrderRequest;
import com.bcxj.internalcommon.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * ClassName: ServiceOrderClient
 * Package: com.bcxj.apipassenger.remote
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/11/9 18:04
 * @Version 1.0
 * @Since 1.0
 */
@FeignClient("service-order")
public interface ServiceOrderClient {
    @PostMapping("/order/add")
    ResponseResult add(@RequestBody OrderRequest orderRequest);

    @GetMapping("/test-real-time-order/{orderId}")
    public ResponseResult testRealTimeOrder(@PathVariable("orderId") String orderId);

    @PostMapping("/order/cancel")
    ResponseResult cancel(@RequestParam String orderId, @RequestParam String identity);
}
